package com.yunke.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 首页模块配置实体类
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yunke_home_module")
@Schema(name = "YunkeHomeModule", description = "首页模块配置实体")
public class YunkeHomeModule implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Schema(description = "模块ID")
    private Long id;

    @Schema(description = "模块编码")
    private String moduleCode;

    @Schema(description = "模块名称")
    private String moduleName;

    @Schema(description = "模块类型（1轮播图 2导航菜单 3功能模块 4推荐内容）")
    private Integer moduleType;

    @Schema(description = "模块标题")
    private String moduleTitle;

    @Schema(description = "模块描述")
    private String moduleDesc;

    @Schema(description = "模块图标")
    private String moduleIcon;

    @Schema(description = "模块图片")
    private String moduleImage;

    @Schema(description = "跳转链接")
    private String linkUrl;

    @Schema(description = "跳转类型（1内部页面 2外部链接 3小程序页面）")
    private Integer linkType;

    @Schema(description = "小程序AppId")
    private String miniAppId;

    @Schema(description = "小程序页面路径")
    private String miniPagePath;

    @Schema(description = "模块配置（JSON格式）")
    private String moduleConfig;

    @Schema(description = "显示位置")
    private String displayPosition;

    @Schema(description = "显示顺序")
    private Integer displayOrder;

    @Schema(description = "是否启用（0否 1是）")
    private Boolean isEnabled;

    @Schema(description = "是否置顶（0否 1是）")
    private Boolean isTop;

    @Schema(description = "开始时间")
    private Long startTime;

    @Schema(description = "结束时间")
    private Long endTime;

    @Schema(description = "目标用户（1全部 2新用户 3老用户 4VIP用户）")
    private Integer targetUser;

    @Schema(description = "显示条件（JSON格式）")
    private String displayCondition;

    @Schema(description = "点击统计")
    private Integer clickCount;

    @Schema(description = "浏览统计")
    private Integer viewCount;

    @Schema(description = "扩展信息（JSON格式）")
    private String extraInfo;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "状态（0正常 1删除）")
    private Integer status;

    @Schema(description = "创建时间")
    private Long createTime;

    @Schema(description = "更新时间")
    private Long updateTime;
} 